package com.example.day3mvp.di.module;

import com.example.day3mvp.mvp.contrat.LoginContrat;
import com.example.day3mvp.mvp.model.LoginModel;

import dagger.Module;
import dagger.Provides;

@Module
public class LoginModule {
    private LoginContrat.LoginView mView;
    private LoginContrat.LoginModel mModel;
    public LoginModule(LoginContrat.LoginView mView) {
        this.mView = mView;
    }

    @Provides   //构建
    LoginContrat.LoginView providerloginView(){
        return mView;
    }
    @Provides
    LoginContrat.LoginModel providerloginModel(){
        return new LoginModel();
    }




}
